package com.wsl.myexception.controller;

import com.wsl.myexception.exception.WslException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GirlController {
    @RequestMapping("/exception")
    public void get(Integer id) throws WslException {
        if (id<16){
            throw  new WslException(1222,"我还是小朋友");
        }
    }
}
